/*
	FileName : app_uart6.h
	Description : 

		UART6 is used as RS485 device to communicate with HOST.

	Created on 2013.10.11 by ZZP.


	Revision History:


*/

#ifndef __APP_USART6__
#define __APP_USART6__

#include "includes.h"
#include <stm32f2xx.h>
#include <stm32f2xx.h>
#include "Usart_Common.h"

#define USART6_RX_BUF_SIZE		((uint16_t)1 << 10)
#define USART6_TX_BUF_SIZE		((uint16_t)1 << 10)

#define USART6_RX_BUF_MASK		(USART6_RX_BUF_SIZE - 1)
#define USART6_TX_BUF_MASK		(USART6_TX_BUF_SIZE - 1)

extern uint8_t		Usart6RxBuf[USART6_RX_BUF_SIZE];
extern uint8_t		Usart6TxBuf[USART6_TX_BUF_SIZE];

extern uint8_t     DebugFlag;
#define DEBUGFALG_DEFAULT					0X00
#define DEBUGFLAG_I2CINIT_ERR				0XF1
#define DEBUGFLAG_FLASH_ERR					0XF2


void  AppTaskUsart6 (void *p_arg);
void Usart6_RxFrameHandler(DATA_STRUCT *Info);


#endif//EOF





